<?php 
namespace Home\Controller;

use Think\Controller;
class QrcodeController extends CommonController {

	public function img(){
		error_reporting(E_ERROR);
		vendor('Qrcode.Phpqrcode','','.php');
		// require_once 'phpqrcode/phpqrcode.php';
		$data = I('get.data','');
		$url = urldecode($data);
		\QRcode::png($url,$outfile = false, $level = QR_ECLEVEL_L, $size = 8, $margin = 4);
	}
}
 ?>
